<!--#INCLUDE FILE="config.asp"-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link type="text/css" href="../css/jquery-ui-1.8.21.custom.css" rel="stylesheet" />
<script type="text/javascript" src="../js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="../js/jquery-ui-1.8.21.custom.min.js"></script>
<script language='JavaScript'>
	function refreshParent() {
		window.opener.location.href = window.opener.location.href;
		if (window.opener.progressWindow) {
			window.opener.progressWindow.close()
		}
		window.close();
	}
</script>
				
</head>
<%

if (Request("guestId") <> "") then

	guestId = Request("guestId")

	sqlstring = ""
	sqlstring = sqlstring & "SELECT ContentEmail.Content FROM ContentEmail "
	sqlstring = sqlstring & "WHERE ContentEmail.GuestId = "&guestId
	
	set objConnect1 = server.createObject("ADODB.Connection")   

	objConnect1.Open conStr

	set TblTemp1 = server.createobject("Adodb.Recordset")
		
		TblTemp1.Open sqlstring, objConnect1
		
	If not TblTemp1.EOF then
		content = TblTemp1("Content")
	end if
	
end if
%>

<body>
<h2>Content of Email!</h2>
 <div><%=content%></div>
</body>
</html>